package com.ciwong.epaper.util.service;

import android.util.Log;

import com.ciwong.epaper.util.FeedbackUtil;
import com.ciwong.mobilelib.i.BaseCallBack;

//import com.squareup.leakcanary.DisplayLeakService;
//import com.squareup.leakcanary.analyzer.AnalysisResult;
//import com.squareup.leakcanary.watcher.HeapDump;

/**
 * Created by Administrator on 2016/11/9.
 */
public class LeakUploadService /*extends DisplayLeakService*/ {
/*
    @Override
    protected void afterDefaultHandling(HeapDump heapDump, AnalysisResult result, String leakInfo) {
        if (!result.leakFound || result.excludedLeak) {
            return;
        }
        Log.d("LeakCanary", "######LeakUploadService########");
        Log.d("LeakCanary", "######LeakUploadService leakInfo########"+leakInfo);
        feedBackLog(leakInfo,"捕获的内存泄漏信息");
    }*/



    private void feedBackLog(String logDesc, String remark) {

//        FeedbackUtil.getInstance().addFeedbackLog(FeedbackUtil.FEEDBACK_MEMORY_LEAK, logDesc, remark, new BaseCallBack() {
//            @Override
//            public void success(Object data)
//            {
//            }
//            @Override
//            public void failed(int errorCode, Object data) {
//            }
//            @Override
//            public void failed(Object data) {
//
//            }
//        });


    }
}
